url = '/account/wishlist.html'
description = '愿望清单'
layout = 'default'

[session]
security = "user"
redirect = "account/login"
==
{% put page_title %}Wishlist - {% default %}{% endput %}
{% set wishlists = catalog.getWishlists %}
<!-- contents -->
<div id="contents">
  <nav class="crumbs_nav">
    <ul class="crumbs_list rdstr">
      <li class="crumbs_item">
        <a class="crumbs_link" href="/">
          <span>{{ 'Home'|_ }}</span>
        </a>
      </li>
      <li class="crumbs_item">
        <a class="crumbs_link" href="{{ 'account/dashboard'|page }}">
          <span>{{ 'My account'|_ }}</span>
        </a>
      </li>
      <li class="crumbs_item no_deco">
        <span class="crumbs_link">{{ 'Wishlist'|_ }}</span>
      </li>
    </ul>
  </nav>
  <h3 class="title_main">{{ 'Wishlist'|_ }}</h3>
  <section class="mb20">
    <div class="tab_liquid">
      <ul class="box_list">
        <li>
          <span class="tab_liquid_list_inner">{{ 'Items'|_ }}</span>
        </li>
      </ul>
    </div>
    <section>
      <section>
        {% if count(wishlists)>0 %}
          <ul class="list_product_line list_product_line_checkbox clearfix mt0">
            {% for wilt in wishlists %}
            <li class="list_product_item">
              <div class="box_list">
                <div class="list_product_link box_list_main">
                  <div class="list_product_frame">
                    <div class="list_product_img_block">
                      <img src="{{ wilt.product.getMainThumb(67,90)}}">
                    </div>
                    <div class="list_product_text_block">
                      <a class="db" href="{{ wilt.product.url }}">
                        <p class="list_product_brand rdstr">Felt Maglietta</p>
                        <p class="list_product_name">{{wilt.product.name}}</p>
                        <p class="list_product_category rdstr">カットソー</p>
                        <p class="list_product_price_block rdstr pricedownView list_product_box">
                          <span class="list_product_price force_color">{{ wilt.product.price|formatPrice }}</span>
                          <span class="old-price">{{ wilt.product.list_price|formatPrice }}</span>
                        </p>
                      </a>
                    </div>
                    <span class="arrow"></span>
                  </div>
                  <a class="btn_delete" href="#" data-request="onDeleteWish"
                           data-request-confirm="{{ 'Are you sure to delete?'|_ }}？"
                           data-request-data="wish_id: {{ wilt.id }}" 
                           data-request-success="afterDeleteWish(this, data)">
                       <span class="icon_wrap">
                        <span class="icon_img i_common_cart sprite-trash_g"></span>
                        <span class="icon_txt">{{ 'Delete'|_ }}</span>
                      </span>
                   </a>
                </div>
              </div>
            </li>
            {% endfor %}
          </ul>
        <p class="sub_color tac m10 mb20">{{ 'Add a shopping cart quantity may exceed 1000'|_ }}</p>
      </section>
      {% else %}
          <p style="width: 100%; padding: 5em;">{{ 'Your favorites is empty,  please add your beloved produsts in favorite'|_ }}<a href="/">>></a></p>
      {% endif %}
    </section>
  </section>
</div>
<!-- end contents -->
    